package com.woniuxy.person.personiml;

import com.woniuxy.person.Person;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author: admin  <br/>
 * Date: 2022/1/17:12:16  <br/>
 * Description:
 */

public class Chinese implements Person {
    String name;
    int age;
    List<Integer> integers;
    Map<String,Chinese> map;
    Set<Integer> set;
    List<Map<String,Integer>> mapList;
    List<Chinese> chinese;

    public Chinese(String name, int age, List<Integer> integers, Map<String, Chinese> map,
                   Set<Integer> set, List<Map<String, Integer>> mapList, List<Chinese> chinese) {
        this.name = name;
        this.age = age;
        this.integers = integers;
        this.map = map;
        this.set = set;
        this.mapList = mapList;
        this.chinese = chinese;
    }

    public Chinese() {
        System.out.println(this.getClass() + "的构造器被调用");
    }

    @Override
    public void eat() {
        System.out.println("中国人吃饭");
    }

    @Override
    public String toString() {
        return "Chinese{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", integers=" + integers +
                ", map=" + map +
                ", set=" + set +
                ", mapList=" + mapList +
                ", chinese=" + chinese +
                '}';
    }
}

